﻿#{extends 'main.html' /}
#{set title:'Cadastar Cidade' /}

#{if flash.error}
	<div 	class = "msgInfo">
		<p>
			${flash.error}
		</p>
	</div>
#{/if}

<form name="formCadastrarCidades" method="post" action="@{CCidade.cadastrarCidade()}">
<table>
	<tr>
		<td><label>Cidade:</label></td>
		<td><input type="text" name = "cidade" id = "cidade" value = "" tabindex = 0 /></td>
	</tr>
	<tr>
		<td><label>Estado</label></td>
		<td>
				<select name="estado" id="estado" tabindex = 1>
                	<option value= "AC">AC</option>
					<option value= "AL">AL</option>
					<option value= "AM">AM</option>
					<option value= "AP">AP</option>
					<option value= "BA">BA</option>
					<option value= "CE">CE</option>
					<option value= "DF">DF</option>
					<option value= "ES">ES</option>
					<option value= "GO">GO</option>
					<option value= "MA">MA</option>
                    <option value= "MG">MG</option>
					<option value= "MS">MS</option>
					<option value= "MT">MT</option>
					<option value= "PA">PA</option>
					<option value= "PB">PB</option>
					<option value= "PE">PE</option>
					<option value= "PI">PI</option>
					<option value= "PR">PR</option>
					<option value= "RO">RO</option>
					<option value= "RJ">RJ</option>
					<option value= "RN">RN</option>
					<option value= "RR">RR</option>
					<option value= "RS">RS</option>
					<option value= "SC">SC</option>
					<option value= "SE">SE</option>
					<option value= "TO">TO</option>
					<option value= "SP">SP</option>
                </select>
		</td>
	</tr>
	<tr>
      <td></td>
      <td> <input type="submit" name="sbCadastrar" id="sbCadastrar" value="Cadastrar" tabindex="5"/>
       <input type="button" name="btCancelar" id="btCancelar" value="Cancelar" tabindex="6" onclick = "javascript: window.location = '@{Application.cidades()}'"/> </td>
    </tr>

</table>
</form>